import request from '@/utils/request'

// 查询料仓详情列表
export function listStockBinlist(query) {
  return request({
    url: '/mes/StockBinlist/list',
    method: 'get',
    params: query
  })
}

// 查询料仓详情详细
export function getStockBinlist(id) {
  return request({
    url: '/mes/StockBinlist/' + id,
    method: 'get'
  })
}

// 新增料仓详情
export function addStockBinlist(data) {
  return request({
    url: '/mes/StockBinlist',
    method: 'post',
    data: data
  })
}

// 修改料仓详情
export function updateStockBinlist(data) {
  return request({
    url: '/mes/StockBinlist',
    method: 'put',
    data: data
  })
}

// 删除料仓详情
export function delStockBinlist(id) {
  return request({
    url: '/mes/StockBinlist/' + id,
    method: 'delete'
  })
}

// 导出料仓详情
export function exportStockBinlist(query) {
  return request({
    url: '/mes/StockBinlist/export',
    method: 'get',
    params: query
  })
}

export  function  listStockBinlistSum(query) {
  return  request({
    url: '/mes/StockBinlist/sum',
    method: 'get',
    params: query
  })
}
